os.listdir in python

37

from pathlib import Path

for path in Path('.').iterdir():
    info = path.stat()
    print(info.st_mtime)

Comments

Submit
0 Comments